//
//  DsErErModel.m
//  Tour
//
//  Created by 张张烨 on 16/3/11.
//  Copyright © 2016年 张中烨. All rights reserved.
//

#import "DsErErModel.h"
#import "DsErErModeler.h"
@implementation DsErErModel

//-(void)setType:(NSMutableArray *)type
//{
//    _type = type;
//    NSMutableArray *arr = [NSMutableArray array];
//    for (NSMutableDictionary *dic in _type) {
//        DsErErModeler *er = [[DsErErModeler alloc]init];
//        [er setValuesForKeysWithDictionary:dic];
//        [arr addObject:er];
//    }
//    _type = [NSMutableArray arrayWithArray:arr];
//}
-(void)setItemList:(NSMutableArray *)itemList{
    _itemList = itemList;
    NSMutableArray *array = [NSMutableArray array];
    for (NSMutableDictionary *dic in _itemList) {
        DsErErModeler *sec = [[DsErErModeler alloc]init];
        [sec setValuesForKeysWithDictionary:dic];
        [array addObject:sec];
    }
    _itemList = [NSMutableArray arrayWithArray:array];
}



@end
